package com.petshop.customers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.petshop.customers.mapper.PetCustomersMapper;
import com.petshop.customers.domain.PetCustomers;
import com.petshop.customers.service.IPetCustomersService;

/**
 * 顾客信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-11
 */
@Service
public class PetCustomersServiceImpl implements IPetCustomersService 
{
    @Autowired
    private PetCustomersMapper petCustomersMapper;

    /**
     * 查询顾客信息
     * 
     * @param customerID 顾客信息主键
     * @return 顾客信息
     */
    @Override
    public PetCustomers selectPetCustomersByCustomerID(Long customerID)
    {
        return petCustomersMapper.selectPetCustomersByCustomerID(customerID);
    }

    /**
     * 查询顾客信息列表
     * 
     * @param petCustomers 顾客信息
     * @return 顾客信息
     */
    @Override
    public List<PetCustomers> selectPetCustomersList(PetCustomers petCustomers)
    {
        return petCustomersMapper.selectPetCustomersList(petCustomers);
    }

    /**
     * 新增顾客信息
     * 
     * @param petCustomers 顾客信息
     * @return 结果
     */
    @Override
    public int insertPetCustomers(PetCustomers petCustomers)
    {
        return petCustomersMapper.insertPetCustomers(petCustomers);
    }

    /**
     * 修改顾客信息
     * 
     * @param petCustomers 顾客信息
     * @return 结果
     */
    @Override
    public int updatePetCustomers(PetCustomers petCustomers)
    {
        return petCustomersMapper.updatePetCustomers(petCustomers);
    }

    /**
     * 批量删除顾客信息
     * 
     * @param customerIDs 需要删除的顾客信息主键
     * @return 结果
     */
    @Override
    public int deletePetCustomersByCustomerIDs(Long[] customerIDs)
    {
        return petCustomersMapper.deletePetCustomersByCustomerIDs(customerIDs);
    }

    /**
     * 删除顾客信息信息
     * 
     * @param customerID 顾客信息主键
     * @return 结果
     */
    @Override
    public int deletePetCustomersByCustomerID(Long customerID)
    {
        return petCustomersMapper.deletePetCustomersByCustomerID(customerID);
    }
}
